//
//  HomeBannerModel.m
//  
//
//  Created by 王长飞 on 2018/10/20.
//  Copyright © 2018年 王长飞. All rights reserved.
//

#import "HomeBannerModel.h"

@implementation HomeBannerModel

- (instancetype)initWithDelegate:(id<BaseModelProtocol>)Delegate cache:(BOOL)cache
{
    if (self = [super initWithDelegate:Delegate cache:cache]) {
        self.parseModelClass = [HomeBannerResponse class];
    }
    return self ;
}
- (void)getHomeBannerDataWith:(NSString *)moduleType
{
    NSMutableDictionary *parameters = [NSMutableDictionary dictionaryWithCapacity:4];
    EFAppContext *appc = [EFAppContext sharedContext];
    [parameters setValue:EUInitId forKey:@"storeUnitId"];
    [parameters setValue:moduleType forKey:@"moduleType"];
    
    //获取banner配置： 8标准电商 25保险产品
//    @Headers({"Content-Type: application/json", "Accept: application/json"})
//    @GET("/xqn/app/platformsettingModuleTypeBanner/getDetailByStoreUnitId")
//    Observable<BaseResponse<ModulelTypeBannerBean>> getModuleTypeBanner(@Query("storeUnitId") String storeUnitId,@Query("moduleType") String moduleType);
    [self getPath:@"/xqn/app/platformsettingModuleTypeBanner/getDetailByStoreUnitId" parameters:parameters];
}

@end
